Component({
    properties: {
        checked: {
            type: Boolean,
            value: !1,
            observer: function(e) {
                var t = this;
                this.setData({
                    _checked: this.properties.checked
                }, function() {
                    t.triggerEvent("switch", t.data._checked);
                });
            }
        },
        width: {
            type: String,
            value: "36rpx"
        }
    },
    data: {
        _checked: !1
    },
    methods: {
        switch: function() {
            var e = this;
            this.setData({
                _checked: !this.data._checked
            }, function() {
                e.triggerEvent("switch", e.data._checked);
            });
        }
    }
});